//进行API统一管理
import requests from '../requests';

//车辆监控
export function carPageList() {
    return requests({
        url: '/equipmentManagement/vehicleMonitoring',
        method: 'get',
        params: {current: 1, size: 100},
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },
    })
}

//交通监控
export function getTrafficList(data) {
    return requests({
        url: '/equipmentManagement/getTraffic',
        method: 'post',
        data,
        headers: {
            "Content-Type": "application/json",
        },
    })
}

//道路智能卡口监测
export function getDetection() {
    return requests({
        url: '/equipmentManagement/detection',
        method: 'post',
        // params: params,
        headers: {
            'Content-Type': 'application/json',
        },
    })
}

export function getChannel() {
    return requests({
        url: '/equipmentManagement/getDeviceChannel',
        method: 'get',
        params: {"unitTypeList": 1,"pageNum": 1, 'pageSize': 10,'includeSubOwnerCodeFlag':true},
        headers: {
            'Content-Type': 'application/json',
        },
    })
}
export function getMent() {
    return requests({
        url: '/equipmentManagement/getBayonet',
        method: 'get',
        headers: {
            'Content-Type': 'application/json',
        },
    })
}
